<template>
    <div class="main">
        <div class="left">
            <Left></Left>
        </div>
        <div class="right">
            <div class="top">
                <img src="img/title.jpg">
            </div>
            <div class="buttom">
                <Right></Right>
            </div>

        </div>
    </div>
</template>

<script lang="ts">
import Left from '../components/Left.vue'
import Right from '../components/Right.vue'

export default {
    components: {Left,Right},
    mounted(){
        // console.log(111,this)
            this.$emit('val2',()=>{
                console.log(333)
            })
        },
}
</script>

<style type="text/css">
    *{
        padding: 0;
        margin: 0;
    }
    .left{
        width: 100px;
        float: left;
        margin-right: 10px;
    }
    .right{
        width: 1000px;
        float: left;
        margin-left: 10px;
    }
    .main{
        width: 1200px;
        margin: 20px auto;
    }
    .top img{
        height: 200px;
        width: 200;
    }
    .left,.right{
        background-color: #f5f5f5;
        height: 600px;
    }
</style>
